import type {BasePageReq} from "@/interfaces/base";

export interface DoPayReqVO {
    userId: string;
    addressId: number;
    goodsIds: GoodsIds[];
}

export interface GoodsIds {
    goodsId: number;
    goodsNum: number
}

export interface UpdateOrderStatusReqVO {
    id: string;
    status: number;
}

export interface PageOrdersReqVO extends BasePageReq {
    userId?: string;
    status?: number;
}

export interface Orders {
    id: string;
    address: string;
    name: string;
    phone: string;
    trackingNumber: string;
    goodsId: number;
    goodsName: string;
    price: number;
    images: string;
    goodsNum: number;
    status: number;
    createTime: string;
    updateTime: string;
}

export interface OrdersList {
    id: string;
    address: string;
    name: string;
    phone: string;
    trackingNumber: string;
    status: number;
    createTime: string;
    updateTime: string;
    goodsList: OrderGoodsList[];
}

export interface OrderGoodsList {
    id: number;
    name: string;
    price: number;
    images: string;
}

export interface GetBusinessOrder {
    userId: string;
}

export interface BusinessOrders {
    id: string;
    goodsName: string;
    price: number;
    images: string;
    goodsNum: number;
    status: number;
}